package com.situ.yB2C.order.pojo;

import java.io.Serializable;
import java.util.Date;

import org.apache.ibatis.type.Alias;
import org.springframework.format.annotation.DateTimeFormat;

import com.situ.yB2C.base.pojo.BaseClass;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Setter
@Getter
@Alias("Order")
@ToString
public class Order extends BaseClass implements Serializable{

	
	private static final long serialVersionUID = 1L;
	
	private Long userId;//
	private Long orderNumber; //订单编号
	 @DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date generateDate; //生成时间
	 @DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date payDate; //支付时间
	 @DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date sendDate; //发货时间
	 @DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date deliveryDate; //收货时间
	private Integer orderState; //订单状态 #1;生成(待付款);2:待发货;3:待收货;4:订单完成;
	private Double orderCount; //订单总价格
}
